home *** CD-ROM | disk | FTP | other *** search
/ Freaks Macintosh Archive / Freaks Macintosh Archive.bin / Freaks Macintosh Archives / Textfiles / MasterLock.algorithm.txt < prev    next >
Text File  |  1995-12-17  |  4KB  |  91 lines

  1. *** UNLOCKING MASTER COMBINATION PADLOCKS ***
  2.  
  3. (MasterLockSmith 1.0a3 algorithm translation by =-BOOK-WORM->)
  4.  
  5.  
  6. FINDING THE LAST NUMBER
  7. =======================
  8. On older Master Locks, ones where the arrow at the top is raised, simply
  9. pull on the shackle and turn the dial until it catches, that's the
  10. third number in the combination.
  11.  
  12. On new locks with the recessed arrow, there are twelve places the dial
  13. will catch if you turn it while pulling on the shackle. Seven of these
  14. will catch between two numbers, ignore these, and find the the five
  15. that catch on a number. Four of these will end in the same digit, i.e,
  16. 1, 11, 21, and 31.  The fifth ends with a different digit, and is the
  17. third number in the combination.
  18.  
  19.  
  20. FINDING THE FIRST & SECOND NUMBER
  21. =================================
  22. Using the last number, locate it in the "last number chart" below to see
  23. which table to use to find the possible first and second numbers.  Try
  24. each of the number combinations until the lock opens.
  25.  
  26. Example:
  27.  
  28.   If the last number is 31 then you must use Table C according to the chart.
  29.   That means you must try the following combinations:
  30.    3 -  1 - 31
  31.    3 -  5 - 31
  32.    3 -  9 - 31
  33.    etc...
  34.    3 - 37 - 31
  35.    7 -  1 - 31
  36.    7 -  5 - 31
  37.    7 -  9 - 31
  38.    etc...
  39.    7 - 37 - 31
  40.   11 -  1 - 31
  41.   11 -  5 - 31
  42.   11 -  9 - 31
  43.   etc...
  44.   39 - 37 - 31
  45.   
  46.   
  47.                      *** LAST NUMBER CHART ***
  48.  
  49.   TABLE | LAST NUMBER 
  50. ========+===========================================================
  51.     A   |  1   5   9  13  17  21  25  29  33  37  41  45  49  53  57
  52. --------+-----------------------------------------------------------
  53.     B   |  2   6  10  14  18  22  26  30  34  38  42  46  50  54  58
  54. --------+-----------------------------------------------------------
  55.     C   |  3   7  11  15  19  23  27  31  35  39  43  47  51  55  59
  56. --------+-----------------------------------------------------------
  57.     D   |  4   8  12  16  20  24  28  32  36   0
  58. --------+-----------------------------------------------------------
  59.  
  60.  
  61.                          *** TABLES ***
  62.  
  63.    TABLE A           TABLE B           TABLE C           TABLE D
  64. ==============    ==============    ==============    ==============
  65. FIRST | SECOND    FIRST | SECOND    FIRST | SECOND    FIRST | SECOND
  66. NUMS  | NUMS      NUMS  | NUMS      NUMS  | NUMS      NUMS  | NUMS
  67. ------+-------    ------+-------    ------+-------    ------+-------
  68.    1  |   3          2  |   4          3  |   1          4  |   2
  69.    5  |   7          6  |   8          7  |   5          8  |   6
  70.    9  |  11         10  |  12         11  |   9         12  |  10
  71.   13  |  15         14  |  16         15  |  13         16  |  14
  72.   17  |  19         18  |  20         19  |  17         20  |  18
  73.   21  |  23         22  |  24         23  |  21         24  |  22
  74.   25  |  27         26  |  28         27  |  25         28  |  26
  75.   29  |  31         30  |  32         31  |  29         32  |  30
  76.   33  |  35         34  |  36         35  |  33         36  |  34
  77.   37  |  39         38  |   0         39  |  37          0  |  38  <==(Added)
  78.  
  79.  
  80. -------------------------------------------------------------------------------
  81. For those who care...
  82.  
  83. Derived Formula:
  84. ================
  85.   input "Enter Last Number :", LastNumber
  86.   FirstNumber = LastNumber MOD 4 + abs(LastNumber MOD 4 = 0) * 4
  87.   SecondNumber = (LastNumber + 2) MOD 4 + abs((LastNumber + 2) MOD 4) * 4
  88.   for i = 0 to 36 step 4
  89.     print (FirstNumber+i)*abs(FirstNumber+i<40),(SecondNumber+i)*abs(SecondNumber+i<40)
  90.   next
  91.